package zhtt01.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhtt on 2016/10/29.
 */
@RestController
public class UserController {

    @RequestMapping(value = "/user1/{id}",produces = "text/html;charset=utf-8")
    private String get(@PathVariable("id")String id){
        return "id："+id+"，姓名：张三，性别：男";
    }
}
